<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <ul class="list">
        <li>01</li>
        <li>02</li>
        <li>03</li>
        <li>04</li>
        <li>05</li>
    </ul>
</body>
<script>
    var liList = document.querySelectorAll(".list li");
    console.log(liList);
    // 伪数组转真数组
    var arr = Array.prototype.slice.call(liList);
    var brr = Array.prototype.slice.apply(liList);
    console.log(arr);
    console.log(brr);


    // 获取最大值和最小值
    var arr = [2,3,4,7,8,3,9];
    var min = Math.min.apply(null,arr);
    var max = Math.max.apply(null,arr);
    console.log(min);
    console.log(max);

</script>
</html>